package com.woniu.punishcomplaintnotice.openfeignclient;

import com.woniu.common.entity.Dog;
import com.woniu.common.entity.ResponseResult;
import com.woniu.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@Component
@FeignClient("user")
public interface UserOpenfeignClient {
    @GetMapping("/user/findUser")
    public User findUser(int id);
    @GetMapping("/pet/petInfo")
    public ResponseResult<Dog> selectDogByUserId(@RequestParam(value = "userId") int userId);

    @GetMapping("/message/user/selectUser")
    public User selectUser(@RequestBody String name);
}
